# $NetBSD: Makefile,v 1.2 2012/10/03 15:09:56 asau Exp $
#

DISTNAME=	modplugplay-1.0
CATEGORIES=	audio
MASTER_SITES=	${MASTER_SITE_FREEBSD}

MAINTAINER=	pallegra@gmail.com
HOMEPAGE=	# Old page: http://gnu.ethz.ch/linuks.mine.nu/modplugplay/
COMMENT=	Commandline music mod player using libmodplug
LICENSE=	gnu-gpl-v2

USE_LANGUAGES=	c++

LDFLAGS+=	-lmodplug ${LIBOSSAUDIO}

INSTALLATION_DIRS=	bin ${PKGMANDIR}/man1

SUBST_CLASSES+=		paths
SUBST_STAGE.paths=	post-patch
SUBST_FILES.paths=	modplugplay.c
SUBST_VARS.paths=	DEVOSSAUDIO

do-build:
	${CXX} ${WRKSRC}/modplugplay.c ${CFLAGS} ${LDFLAGS} \
		-o ${WRKSRC}/modplugplay

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/modplugplay ${DESTDIR}${PREFIX}/bin
	${INSTALL_MAN} ${WRKSRC}/modplugplay.1 ${DESTDIR}${PREFIX}/${PKGMANDIR}/man1


.include "../../mk/oss.buildlink3.mk"
.include "../../audio/libmodplug/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"
